package com.kaikai.eduorder.controller;


import com.kaikai.commonutils.R;
import com.kaikai.eduorder.service.PayLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * <p>
 * 支付日志表 前端控制器
 * </p>
 *
 * @author yujiankai
 * @since 2021-06-18
 */
@RestController
@CrossOrigin
@RequestMapping("/eduorder/pay-log")
public class PayLogController {
    //生成微信二维码

    @Autowired
    private PayLogService payService;
    /**
     * 生成二维码
     *
     * @return
     */
    @GetMapping("/createNative/{orderNo}")
    public R createNative(@PathVariable String orderNo) {
        Map map = payService.createNative(orderNo);
        return R.ok().data(map);
    }

}

